﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace medder
{
    public partial class SuccessReg : Form
    {
        User user;
        public SuccessReg(User user)
        {
            InitializeComponent();
            this.user = user;
        }

        private void button1_Click(object sender, EventArgs e)
        {

        }

        private void SuccessReg_Load(object sender, EventArgs e)
        {
            FIO.Text = string.Format("Здравствуйте, {0} {1}", user.Surname, user.Name);
            LBLogin.Text = user.Login;
            LBPassword.Text = user.Password;
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
